using System.Text.RegularExpressions;

namespace LaBruteTrainer.Domain
{
    public class Brute
    {
        public string Name { get; set; }
        public int Life { get; set; }
        public int Force { get; set; }
        public int Agilite { get; set; }
        public int Vitesse { get; set; }

        /// <summary>
        /// Scores of the brute.
        /// </summary>
        /// <returns></returns>
        public int Score()
        {
            return Force + Agilite + Vitesse;
        }

        /// <summary>
        /// Formats the brute's name.
        /// </summary>
        /// <returns></returns>
        public string FormatedName()
        {
            return Regex.Replace(Name, " ", "-").ToLower();
        }
    }
}